<?php
$page = 'admin';
include_once 'header.php';
require_once '../actions/online_functions.php';
?>
<p>
    Staff home
</p>

<ul style="text-transform: capitalize">
    <li> Available courses</li>
    <ul>
        <?php
        $query = "SELECT * FROM courses order by course asc";
        $result = mysql_query($query) or die("Error executing '$query':" . mysql_error());
        while ($row = mysql_fetch_assoc($result)) {
            extract($row);
            echo "<li>$course (" . courseStatus($id, $_SESSION['user_id']) . ")</li><br/>";
        }
        ?>
    </ul>
</ul>


<?php include_once 'footer.php'; ?>